<template>
    <div>
        <p>子组件1: {{ toy }}</p>
        <button @click="eventBus.emit('send-toy', toy)">发送</button>

    </div>
</template>

<script lang="ts" setup>
import eventBus from '../../utitls/eventBus';
import { ref, unref, reactive, toRaw, toValue } from 'vue';
const toy = ref('奥特曼')


</script>